package me.zhengjie.modules.partner.service.dto;

import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @className TokenDto
 * @description Token返回信息
 * @author jianyongjie@126.com
 * @date 2021/8/3 4:53 下午
 * @version 1.0.0
 **/
@Getter
@Setter
@NoArgsConstructor
@Builder
public class TokenDto {
    public TokenDto(Long appId, String appSecret, String token, long expireTime) {
        this.appId = appId;
        this.appSecret = appSecret;
        this.token = token;
        this.expireTime = expireTime;
    }

    private Long appId;
    private String appSecret;

    /** 生成的Token */
    private String token;

    /** Token 到期时间*/
    private long expireTime;
}
